let arr = [1, 2, 3, 0, 0, 0, 0];
class Arr {
    constructor(arr) {
        this.arr = arr;
    }

    fn() {
        let brr = arr.filter(function (v) {
            return v > 0;
        })
        console.log(brr)
    }
}
let a = new Arr(arr);
a.fn();